package org.foreveross.que.vo;

import java.util.ArrayList;
import java.util.List;

import org.foreveross.que.entity.MenuEntity;

public class TreeChildVo {
	
	public TreeChildVo(){}
	
	public TreeChildVo(MenuEntity menu){
		this.id = menu.getCode();
		this.text = menu.getName();
		this.url = "/help/topic/toJsp.action?vo.mid="+menu.getCode();
		this.pid = menu.getPid();
		this.orderId = menu.getOrderId();
		
	}
	
	public TreeChildVo(List <TreeChildVo> parents){
		
		url = "";
		orderId = 1;
		this.children = parents;
	}

	String id ;
	String pid;
	String text ;
	String url ;
	Integer orderId;
	List<TreeChildVo> children = new ArrayList<TreeChildVo>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public List<TreeChildVo> getChildren() {
		return children;
	}

	public void setChildren(List<TreeChildVo> children) {
		this.children = children;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	
	
	
}
